class CreateUsers < ActiveRecord::Migration
  def change
    create_table :users do |t|
      t.string :login
      t.string :password
      t.string :session
      t.integer :money

      t.timestamps
    end
  end

  def self.up
    add_index :users, :login, :unique => true
  end

  def self.down
    remove_index :users, :login
  end

end
